﻿using System;
using RayDen.RayEngine.Data;
using RayDen.RayEngine.Scene;
using RayEngine.Spectral.Entities.Materials;

namespace RayEngine.Spectral.Entities
{
    public class SolidObject : BaseSceneObject
    {
        public bool IsLightsource, IsVolume;

        public SolidMaterial Material;

        public SolidObject(BaseMaterial material, TriangleMeshInfo mesh) : base(mesh)
        {
            if (mesh == null)
            {
                throw new ArgumentNullException("mesh");
            }
            this.Material = (SolidMaterial)material;            
        }

        public override ScenePrimitiveType PrimitiveType
        {
            get { return ScenePrimitiveType.Solid; }
        }
    }
}